package com.livra.utils;

import java.util.HashMap;
import java.util.Map;

import com.livra.model.Category;

public class JsonCategoryConfig extends JsonReflexionConfig {

    @SuppressWarnings("unchecked")
    public static  JsonReflexionConfig createConfig(){
        Map<String,Class> classMap = new HashMap<String,Class>();
        classMap.put("children", Category.class);
        JsonReflexionConfig config = JsonReflexionConfig.createByClass(Category.class);
        config.setClassMap(classMap);
        return config;
        
    }
}
